|
vacuum2 2.2.1
|
Vacuum 2 Click Example. More...
Macros | |
| #define | MIKROBUS_POSITION_VACUUM2 MIKROBUS_1 |
Functions | |
| void | application_init (void) |
| void | application_task (void) |
| int | main (void) |
Vacuum 2 Click Example.
This example demonstrates the use of the Vacuum 2 Click board. It showcases how to initialize the device, perform zero-pressure offset calibration, and measure pressure in Pascals (Pa).
The demo application is composed of two sections:
Initializes the logger and the Vacuum 2 Click driver. The application then performs zero-pressure offset calibration to ensure accurate pressure measurements. During the calibration, it is crucial to avoid applying pressure to the sensor.
Continuously reads the pressure from the sensor and logs the values in Pascals (Pa).
| #define MIKROBUS_POSITION_VACUUM2 MIKROBUS_1 |
| void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
| void application_task | ( | void | ) |
| int main | ( | void | ) |